package day01;

import java.io.*;

public class PrintWriterDemo01 {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter(new File("D:\\1\\pw2.txt"));
        BufferedReader br = new BufferedReader(new FileReader("D:\\1\\bw.txt"));
        String msg = null;
        while((msg=br.readLine())!=null) {
            pw.println(msg);
        }
        System.out.println("拷贝完成");
        pw.close();
        br.close();

    }
}
